package com.zhentao.carouselimage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @TableName carouselimage
 */
@ApiModel(description = "轮播图")
@TableName(value ="carouselimage")
@Data
public class Carouselimage implements Serializable {
    /**
     * 轮播图id
     */
    @ApiModelProperty(value = "轮播图id", position = 1)
    @TableId(value = "id" , type = IdType.AUTO)
    private Integer id;

    /**
     * 轮播图标题
     */
    @ApiModelProperty(value = "轮播图标题", position = 2)
    @TableField(value = "title")
    private String title;

    /**
     * 轮播图位置
     */
    @ApiModelProperty(value = "轮播图位置", position = 3)
    @TableField(value = "position")
    private Integer position;

    /**
     * 轮播图内容
     */
    @ApiModelProperty(value = "轮播图内容", position = 4)
    @TableField(value = "content")
    private String content;

    /**
     * 图片路径
     */
    @ApiModelProperty(value = "图片路径", position = 5)
    @TableField(value = "image_url")
    private String imageUrl;


    @ApiModelProperty(hidden = true)
    @TableField(value = "status")
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}